﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendEmail.aspx.cs" Inherits="AlbonWeb.Manager.OrderManager.SendEmail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Buy Cloth</title>
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Order>>Buy Cloth</span>
        </div>
        <table width="750" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr class="content_title">
                <td align="left">
                    &nbsp;View Buy Record:<asp:Label ID="refNo" class="lbInfo" runat="server" Text=""></asp:Label>
                </td>
                <td align="right">
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td colspan="2">
                    <asp:Repeater ID="repMain" runat="server" OnItemDataBound="repMain_ItemDataBound">
                        <ItemTemplate>
                            <div class="messagebox">
                                <div class="left">
                                    Send Order To: <span id='companyname_<%#Eval("ID")%>' class="lbInfo">
                                        <%#Eval("shortName")%></span></div>
                                <div class="left">
                                    Email Address:datou-1009@163.com</div>
                                <asp:HiddenField ID="hfcompanyname" runat="server" Value='<%#Eval("shortName")%>' />
                                <!--请不要在body内使用&字符，否则将导致邮件内容无法无法完全显示-->
                                <div id='body_<%#Eval("ID") %>'>
                                    Dear
                                    <%#Eval("linkMan")%>:<br />
                                    <div>
                                        Please send me the following cloth as sooner as possible!
                                        <table class="tb_list" cellpadding="0" cellspacing="0" border="1" bordercolor="#AFDA8C"
                                            style="font-size: 10pt">
                                            <asp:Repeater ID="repCloth" runat="server">
                                                <HeaderTemplate>
                                                    <tr class="tr_list_head" align="center">
                                                        <td>
                                                            Ref#
                                                        </td>
                                                        <td>
                                                            Cloth No
                                                        </td>
                                                        <td>
                                                            Width
                                                        </td>
                                                        <td>
                                                            Size
                                                        </td>
                                                        <td>
                                                            Price
                                                        </td>
                                                        <td>
                                                            Detail
                                                        </td>
                                                    </tr>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <tr>
                                                        <td>
                                                            <%#Eval("clothRefNo") %>
                                                        </td>
                                                        <td>
                                                            <%#Eval("clothNO") %>
                                                        </td>
                                                        <td>
                                                            <%#Eval("width") %>
                                                        </td>
                                                        <td>
                                                            <%#Eval("clothSize") %>
                                                        </td>
                                                        <td>
                                                            <%#string.Format("{0:0.00}",decimal.Parse(Eval("clothPrice").ToString())) %>
                                                        </td>
                                                        <td>
                                                            <%#Eval("clothDetail") %>
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </table>
                                    </div>
                                    <div id='remark<%#Eval("ID")%>' style="color: Red">
                                    </div>
                                    <br />
                                    Best Regards!
                                    <br>
                                    <%#HttpContext.Current.User.Identity.Name %>
                                </div>
                                <asp:HiddenField ID="hfclothidlist" runat="server" />
                                <div class="right">
                                    <input type="text" id='remark_<%#Eval("ID")%>' class='remark' style="width: 80%;
                                        display: none" />
                                    <label id='lb_<%#Eval("ID") %>'>
                                    </label>
                                    <input id='addRemark_<%#Eval("ID")%>' class="addremark" type="button" value="Add Remark" />
                                    <input class="sendEmail" name='<%#Eval("ID")%>' type="button" value="Send" /></div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td>
                    &nbsp;
                </td>
                <td align="right">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
